<?php

    require_once("config.php");
    require_once("components/apl_image_upload.php");
    
    $fp = new AplImageUpload();
    
    $fp->setName("fu");
    if( $fp->hasFile() )
    {
        $fp->saveAs( "td.".$fp->fileExtension());
    }
    else
    {
    ?>
        <form enctype="multipart/form-data" method="post" action="test.php" id="test" name="test">
            <input type="file" name="fu" />
            <input type="SUBMIT" name="test" value="value" />
        </form>
    <?php
    }

?>

